package dk.fuddi.conversion;

import dk.fuddi.commons.Base64;

/**
 * User: jen
 * Date: May 26, 2007
 * Time: 2:40:05 PM
 */
public class Base64Utils implements DeEncodeInterface {

	private String name = "Base64";

	public String encode(String s) {
		System.out.println("Base64Utils.encode");

		return new String(Base64.encodeBase64(s.getBytes()));
	}

	public String decode(String s) {
		System.out.println("Base64Utils.decode");

		return new String(Base64.decodeBase64(s.getBytes()));
	}

	public String toString() {
		return name;
	}
}
